home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet multimedia
/
Linux LiveCD
/
GeeXboX 1.0 EN
/
geexbox-1.0-en.i386.iso
/
GEEXBOX
/
etc
/
init.d
/
90_umount
< prev
Wrap
Text File
|
2006-06-21
|
420b
|
23 lines
#!/bin/sh
#
# umount all mounted disks
#
# runlevels: geexbox, debug
echo "### Unmounting disks and shares ###"
# umount samba shares
for DIR in /mnt/shares/*/*; do
test -d "$DIR" && umount "$DIR" >/dev/null 2>&1 && rmdir "$DIR"
done
# when started with make exec, umount partitions
if test -f /EXEC; then
for DIR in /mnt/*; do
test -d "$DIR" && umount "$DIR" >/dev/null 2>&1
done
umount /proc
fi
exit 0